package com.woniuxy.charin.enumeration;

/**
 * 枚举封装系统级别的状态码
 */
public enum EventCode implements ResultCode {
    // 定义枚举对象
    CHARGINGPILES_RISK_EXIST(541, "当前充电桩隐患已存在"),
    CHARGINGPILES_FAULT_EXIST(542, "当前充电桩故障已存在"),
    PROCESSORS_IS_EMPTY(543, "暂无处理人？"),
    PROCESSORS_ACCOUNT_ABNORMAL(544, "当前处理人账户不正常"),
    PROCESSORS_REASSIGNMENTS_EMPTY(545, "重派次数已耗尽"),
    PROCESSORS_EVENT_PLETHORA(546, "处理人当前处理事件过多");
    private Integer code;
    private String message;
    EventCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
    /**
     * 获取状态码
     */
    @Override
    public Integer getCode() {
        return this.code;
    }
    /**
     * 获取状态信息
     */
    @Override
    public String getMessage() {
        return this.message;
    }
}